class UserSongCommentController < ApplicationController

  def new_review
    @song = Song.find(params[:id])
  end

  def create_review
    @song_review = UserSongComment.new(params[:user_song_comment])
    @song_review.username = @user.username
    @song_review.song_id = :id
    if @song_review.save
      flash[:notice] = 'Review saved.'
      redirect_to :controller => 'user', :action => 'home'
    else
      flash[:error] = 'Error saving review.'
      redirect_to :action => 'create_review'
    end
  end
end
